<?php
namespace Admin\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
       $this -> display("Login/login");
    }   
    public function addtestadmin(){
       $m = M('root');
       $data['adminname'] = "小强";
       $data['passwd'] = $this -> HdEncrypt("1234");
       if (false!=$m->add($data)) {
       	 echo "小强你真帅！！！";
       }else{
       	echo "小强你没事！！！";
       }
    }
}